import Vue from 'vue'
import Router from 'vue-router'

import RegistProtocol from '@/views/RegistProtocol'
import GoodsLists from '@/views/GoodsLists'
import GoodsDetails from '@/views/GoodsDetails'
import PlaceOrder from '@/views/PlaceOrder'
import ChangeReceiveAddress from '@/views/ChangeReceiveAddress'
import EditAddress from '@/views/EditAddress'
import AddNewAddress from '@/views/AddNewAddress'
import RetailStore from '@/views/RetailStore'
import StoreMap from '@/views/StoreMap'
import Invoice from '@/views/Invoice'
import OnlineOrOfflinePay from '@/views/OnlineOrOfflinePay'
import ChoosePayMethods from '@/views/ChoosePayMethods'
import PaySucceedOffline from '@/views/PaySucceedOffline'
import SucceedOfflineOrderDetail from '@/views/SucceedOfflineOrderDetail'
import ChooseCoupon from '@/views/ChooseCoupon'
import MyCoupon from '@/views/MyCoupon'
import ExchangeCoupon from '@/views/ExchangeCoupon'
import MyBrowsed from '@/views/MyBrowsed'
import SaleBags from '@/views/SaleBags'
import SelectCategory from '@/views/SelectCategory'
import Mysucesswx from '@/views/Mysucesswx'
Vue.use(Router)

export default new Router({
  routes: [
  	{
  		name: '/registProtocol',
      path: '/registProtocol',
      component: RegistProtocol
  	},
  	{
  		name: '/goodsLists',
      path: '/goodsLists',
      component: GoodsLists
  	},
    {
    	name: '/goodsDetails',
      path: '/goodsDetails',
      component: GoodsDetails
    },
    {
    	name: '/placeOrder',
      path: '/placeOrder',
      component: PlaceOrder
    },
    {
    	name: '/changeReceiveAddress',
      path: '/changeReceiveAddress',
      component: ChangeReceiveAddress
    },
    {
    	name: '/editAddress',
      path: '/editAddress',
      component: EditAddress
    },
    {
    	name: '/addNewAddress',
      path: '/addNewAddress',
      component: AddNewAddress
    },
    {
    	name: '/retailStore',
      path: '/retailStore',
      component: RetailStore
    },
    {
    	name: '/storeMap',
      path: '/storeMap',
      component: StoreMap
    },
    {
    	name: '/invoice',
      path: '/invoice',
      component: Invoice
    },
    {
    	name: '/choosePayMethods',
      path: '/choosePayMethods',
      component: ChoosePayMethods
    },
    {
    	name: '/saleBags',
      path: '/saleBags',
      component: SaleBags
    },
    {
    	name: '/onlineOrOfflinePay',
      path: '/onlineOrOfflinePay',
      component: OnlineOrOfflinePay
    },
    {
    	name: '/chooseCoupon',
      path: '/chooseCoupon',
      component: ChooseCoupon
    },
    {
    	name: '/myCoupon',
      path: '/myCoupon',
      component: MyCoupon
    },
    {
    	name: "/exchangeCoupon",
    	path: "/exchangeCoupon",
    	component: ExchangeCoupon
    },
    {
    	name: "/paySucceedOffline",
    	path: "/paySucceedOffline",
    	component: PaySucceedOffline
    },
    {
    	name: "/succeedOfflineOrderDetail",
    	path: "/succeedOfflineOrderDetail",
    	component: SucceedOfflineOrderDetail
    },
    {
    	name: "/myBrowsed",
    	path: "/myBrowsed",
    	component: MyBrowsed
    },
    {
    	name: "/selectCategory",
    	path: "/selectCategory",
    	component: SelectCategory
    },
    {
    	name: "/mysucesswx",
    	path: "/mysucesswx",
    	component: Mysucesswx
    }
  ]
})


